#include <stdio.h>

//#define MAX 1024
//#define max(a,b)    a > b ? a : b
#define cal(x,y,z)    (x)+(y)*(z)

int main()
{
    //int a=1024;
    int a=1;
    int b=2;
    int c=3;    
    printf("%d\n",cal(a+b,b+c,a+c));
    //printf("%d\n",max);
    return 0;
}